#if defined(TSINGMA_MX) || defined(TSINGMA_GX)

#include "sal.h"
#include "dal.h"
#include "sys_usw_common.h"

int32
sys_tmm_register_get_glb_acl_table(uint8 lchip, uint8 dir, sys_register_glb_acl_lkup_t* p_glb_acl_lkup)
{
    if (dir == CTC_INGRESS)
    {
        p_glb_acl_lkup->table_id            = IpeFwdAclCtl_t;
        p_glb_acl_lkup->field_enable        = IpeFwdAclCtl_gGlbAcl_0_aclEnable_f;
        p_glb_acl_lkup->field_label         = IpeFwdAclCtl_gGlbAcl_0_aclLabel_f;
        p_glb_acl_lkup->field_lkup_type     = IpeFwdAclCtl_gGlbAcl_0_aclLookupType_f;
        p_glb_acl_lkup->field_gport_type    = IpeFwdAclCtl_gGlbAcl_0_aclGlobalPortType_f;
        p_glb_acl_lkup->field_use_pi_vlan   = IpeFwdAclCtl_gGlbAcl_0_aclUsePIVlan_f;
    }
    else
    {
        p_glb_acl_lkup->table_id            = EpeAclQosCtl_t;
        p_glb_acl_lkup->field_enable        = EpeAclQosCtl_gGlbAcl_0_aclEnable_f;
        p_glb_acl_lkup->field_label         = EpeAclQosCtl_gGlbAcl_0_aclLabel_f;
        p_glb_acl_lkup->field_lkup_type     = EpeAclQosCtl_gGlbAcl_0_aclLookupType_f;
        p_glb_acl_lkup->field_gport_type    = EpeAclQosCtl_gGlbAcl_0_aclGlobalPortType_f;
        p_glb_acl_lkup->field_use_pi_vlan   = EpeAclQosCtl_gGlbAcl_0_aclUsePIVlan_f;
    }
    return CTC_E_NONE;
}


#endif

